<?php
//传统工厂类
class Factory implements IFactory{
	public function getWeapon($weapon){
		switch ($weapon){
			case 'handgun':
				return new Handgun();
				break;
			case 'sniper':
				return new Sniper();
				break;
		}
	}
}

